﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Estore.ViewModels.LogonModel>" %>
 <%
    if (Session["user_id"]!=null) {
%>
<div class="sidebar_menu">
                <div class="sidebar_name"><p class="Menu_para">Member Loged in</p></div>
                    <div class="login_area"></div>
                     Welcome <b><%= Session["user_name"] %></b>!
                    [ <%: Html.ActionLink("Log Off", "LogOff", "Account") %> ]
                    </div>
       
<%
    }
    else {
        
%> 
            <div class="sidebar_menu">
                <div class="sidebar_name"><p class="Menu_para">Member Login</p></div>
                    <div class="login_area">
                     <div> <ul class="gallery clearfix">
							<a href="../Account/Logon&iframe=true&width=200&height=200" rel="prettyPhoto[iframe]">
								Login
							</a>
			            </ul>
  <!--end--></div> 
                     <div><!-- Tạo pretty photo -->
				        <ul class="gallery clearfix">
							<a href="../Account/Register&iframe=true&width=750&height=320" rel="prettyPhoto[iframe]">
								Register
							</a>
			            </ul>
  <!--end--></div>
                    </div>
                 </div>
      
<%
    }
%>

 